This Jupyter notebook is intented to be used alongside the book Python for Bioinformatics
In [0]:
!wget https://github.com/Serulab/Py4Bio/archive/master.zip
In [0]:
!unzip master.zip
In [0]:
!pip install bottle
In [0]:
!cp -r Py4Bio-master/code/ch21/* ./
In [0]:
!wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
In [0]:
!unzip ngrok-stable-linux-amd64.zip
In [0]:
!sed -i "s/port=8080/port=8888/" ./muscleserver.py
In [0]:
get_ipython().system_raw('./ngrok http 8888 &')
In [0]:
%%sh
curl -s http://localhost:4040/api/tunnels | python -c "import sys, json; print(json.load(sys.stdin)['tunnels'][0]['public_url'])"
In [0]:
!python ./muscleserver.py
In [0]: